﻿namespace Probel.Client.Commands
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    using Probel.Statistics.Helpers;

    [Command("info", "i", "Displays info of this computer")]
    public class InfoCommand : ICommand
    {
        #region Methods

        public void Execute(dynamic context)
        {
            var os = SystemInfo.Load();

            Console.WriteLine("Windows version:   {0}", os.Version);
            Console.WriteLine("Registration code: {0}", os.Serial);
        }

        #endregion Methods
    }
}